<?php include "../public/header.php";?>
<?php include "../public/header_edit.php";?>
<body id="optPage">
<form class="layui-form layui-form-pane" id="commentForm">
    <div class="page-title">
        <div class="page-title-con"><span id="shenStatus"></span><div class="move_title"></div><?php include "../public/sub.php";?></div>
    </div>
    <div class="main-container">
        <div class="block-generic">
            <div class="layui-form-item">
                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md12">
                        <label class="layui-form-label" style="height: 116px">说明</label>
                        <div class="layui-input-block">
                            <textarea id="explain" name="explain" placeholder="请输入" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    var param_ids = getQueryVariable('ids') || '';
    var param_status = getQueryVariable('status') || 0;
    if(param_status == 1){
        $("#shenStatus").html('批量通过');
    }else{
        $("#shenStatus").html('批量驳回');
    }



    layui.use(['laytp', 'form'], function() {
        var form = layui.form, layer = layui.layer;

        form.on('submit(add)', function(data){
            data.field.ids = param_ids;
            data.field.status = param_status;

            facade.ajax({url: ask_engin_shi_mulshen, data:data.field}).done(function(res){
                if (res.code === 2000) {
                    facade.success("提交成功!");
                    parent.parent.layui.table.reload('datalist');
                    setTimeout(() => {
                        parent.window.location.reload();
                    }, 1500);

                }
            });

            return false;
        });
    });










</script>
</body>
</html>
